
import time
str = '1517759999000'
timeArray = time.localtime(int(str))
date = time.strftime("%Y-%m-%d", timeArray)
print (date)